<template>
  <div>
    <el-button type="primary" v-on:click="onRegis()">确定</el-button>
  </div>
</template>

<script>
  import {ElMessage} from 'element-plus'
  import request from "@/util/request"
  import router from "@/router"
  import {useRoute} from 'vue-router'
  export default {
    name: "Login",
    setup () {
      const route = useRoute()
      return {route}
    },
    data () {
      return {
        loginForm : {
          userName : '',
          passWord : ''
        },
        menu:[
          {
            grouppath:'answer',
            groupname:'群组1',
          },
          {
            grouppath:'answer',
            groupname:'群组2',
          }
        ]
      }
    },
    methods : {
      onRegis() {
        this.$store.commit("setMenu",this.menu)
        router.push('/home')
      }
    }
  }
</script>

<style scoped>
.login-box {
  border: 1px solid #DCDFE6;
  width: 350px;
  margin: 120px auto;
  padding: 35px 35px 15px 35px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  box-shadow: 0px 0 25px black;
  background-color: white;
}

.login-title {
  text-align: center;
  margin: 0 auto 30px auto;
  color: #303133;
}

/deep/ .el-form-item__label {
  font-size: 18px;
  color: black;
}
</style>